﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CatAndDog5
{
    class Pig : Animal
    {
        public Pig() : base()
        { }

        public Pig(string name) : base(name)
        { }

        protected override string getVoice()
        {
            return "哼";
        }
    }

    class PigBaJie : Pig , IChange
    {
        //可以使用父类实现的getVoice

        public PigBaJie() : base()
        { }

        public PigBaJie(string name) : base(name)
        { }

        public string ChangeTest()
        {
            return base.Shout() + " 我有36般变化!";
        }
    }


}
